<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>漂亮滑动门效果，alixixi.com收集。</title>
    <style type="text/css">
        body
        {
            font-size:12px;
        }
        #divMainTab{
			width:410px;
			height:32px;
				
		}
		.selected{
			margin:0px;
			padding:0px;
			float:left;	
			border:solid 1px #9cd9f5;
			border-bottom:solid 0px #9cd9f5;
			width:80px;
			height:30px;
			text-align:center;
			line-height:30px;
			background:white;
		}
        .normal{
			margin:0px;
			padding:0px;
			float:left;	
			border:solid 1px #9cd9f5;
			width:80px;
			height:30px;
			background:#CCC;
			text-align:center;
			line-height:30px; 
		}
		li:hover{
			background:white;
			border-bottom:solid 0px #9cd9f5	;
		}
		a{
			text-decoration:none;
			
			
		}
		.divContent{
			margin:0px;
			padding:0px;
			width:408px;
			height:400px;
			border-left:solid 1px #9cd9f5;
			border-right:solid 1px #9cd9f5;
			border-bottom:solid 1px #9cd9f5;
			clear: both; 
		}
    </style>

    <script language="javascript" type="text/javascript">
        function changeTab(index)
        {
            for (var i=1;i<=5;i++)
            {
                document.getElementById ("li_"+i).className ="normal";
                document.getElementById ("li_"+index).className ="selected";
                
                document.getElementById ("div"+i).style.display  ="none";
            }
            
           // document.getElementById ("div1").innerText= "www.alixixi.com"+index;
            document.getElementById ("div"+index).style.display  ="block";
       }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div id="divMainTab">
                <ul style="list-style: none; margin: 0px; padding: 0px; border-collapse: collapse;">
                   
                    <li id="li_1" class="selected" onmouseover="changeTab('1')"><a href="#">阿里西西1</a> </li>
                    <li id="li_2" class="normal" onmouseover="changeTab('2')"><a href="#">阿里西西2</a> </li>
                    <li id="li_3" class="normal" onmouseover="changeTab('3')"><a href="#">阿里西西3</a> </li>
                    <li id="li_4" class="normal" onmouseover="changeTab('4')"><a href="#">阿里西西4</a> </li>
                    <li id="li_5" class="normal" onmouseover="changeTab('5')"><a href="#">阿里西西5</a> </li> 
                </ul>
            
            </div>
            <div   id="div1" style ="display :block" class ="divContent">
                1号，www.alixixi.com
            </div>
             <div  id="div2" style ="display :none" class ="divContent">
                2号，www.alixixi.com
            </div>
             <div  id="div3" style ="display :none" class ="divContent">
                3号，www.alixixi.com
            </div>
             <div id="div4" style ="display :none" class ="divContent">
                4号，www.alixixi.com
            </div>
             <div   id="div5" style ="display :none" class ="divContent"> 
               5号，www.alixixi.com
            </div> 
        </div>
    </form>
</body>
</html>